package com.example.app;

public class DataSaver {

    private MainClass main;

    public DataSaver(MainClass main) {
        this.main = main;
    }

    public void saveClipData() {
        
        ClipModel clip = new ClipModel("/sdcard/video.mp4", 1000, 5000);
        if (clip == null) {
            throw new IllegalArgumentException("main 不能为 null");
        }
        main.saveRelativeData(clip);
        System.out.println("Clip saved: " + clip.getFilePath());
    }
}